import 'package:flutter/material.dart';

class RightDrawer extends StatelessWidget {
  const RightDrawer({super.key});

  @override
  Widget build(BuildContext context) {
    return Drawer(
      child: Column(
        children: <Widget>[
          UserAccountsDrawerHeader(
            accountName: const Text("明致成先生"),
            accountEmail: const Text("mzc@byd.com"),
            currentAccountPicture: const CircleAvatar(
              backgroundImage: AssetImage("images/b.jpg"),
            ),
            otherAccountsPictures: <Widget>[
              Image.asset("images/a.jpg"),
              Image.asset("images/c.jpg"),
              Image.asset("images/d.jpg")
            ],
          ),
          const ListTile(
            title: Text("个人中心"),
            leading: CircleAvatar(child: Icon(Icons.people)),
          ),
          const Divider(),
          const ListTile(
            title: Text("系统设置"),
            leading: CircleAvatar(child: Icon(Icons.settings)),
          )
        ],
      ),
    );
  }
}
